#include "SpinnerActivateCommand.h"

SpinnerActivateCommand::SpinnerActivateCommand(Spinner* receiver): spinner(receiver)
{
}

SpinnerActivateCommand::SpinnerActivateCommand(const SpinnerActivateCommand& rhs): GameCommand(rhs), spinner(rhs.spinner)
{
}

SpinnerActivateCommand::~SpinnerActivateCommand()
{
}

void SpinnerActivateCommand::Execute()
{
	if (spinner)
	{
		spinner->Rotate();
	}
}

GameCommand* SpinnerActivateCommand::Clone() const
{
	return new SpinnerActivateCommand(*this);
}
